import java.util.Scanner;

public class pp29
{
  public static void main (String[] args)
  {
  
     double money;
     double fty,twy,ten,fiv,one,ptf,pto,ppf,ppt,ppo;
     int Fty,Twy,Ten,Fiv,One,Ptf,Pto,Ppf,Ppt,Ppo;

     Scanner scan = new Scanner(System.in);

     System.out.println ("Give me your money: ");
     money = scan.nextDouble( );

     fty = money / 50.0;
     Fty = (int) fty;
     twy = (money - Fty * 50.0) / 20.0;
     Twy = (int) twy;
     ten = (money - Fty * 50.0 - Twy * 20.0) / 10.0;
     Ten = (int) ten;
     fiv = (money - Fty * 50.0 - Twy * 20.0 - Ten * 10.0) / 5.0;
     Fiv = (int) fiv;
     one = (money - Fty * 50.0 - Twy * 20.0 - Ten * 10.0 - Fiv * 5.0) / 1.0;
     One = (int) one;
     ptf = (money - Fty * 50.0 - Twy * 20.0 - Ten * 10.0 - Fiv * 5.0 - One * 1.0) / 0.5;
     Ptf = (int) ptf;
     pto = (money - Fty * 50.0 - Twy * 20.0 - Ten * 10.0 - Fiv * 5.0 - One * 1.0 - Ptf * 0.5) / 0.1;
     Pto = (int) pto;
     ppf = (money - Fty * 50.0 - Twy * 20.0 - Ten * 10.0 - Fiv * 5.0 - One * 1.0 - Ptf * 0.5 - Pto * 0.1) / 0.05;
     Ppf = (int) ppf;
     ppt = (money - Fty * 50.0 - Twy * 20.0 - Ten * 10.0 - Fiv * 5.0 - One * 1.0 - Ptf * 0.5 - Pto * 0.1 - Ppf * 0.05) / 0.02;
     Ppt = (int) ppt;
     ppo = (money - Fty * 50.0 - Twy * 20.0 - Ten * 10.0 - Fiv * 5.0 - One * 1.0 - Ptf * 0.5 - Pto * 0.1 - Ppf * 0.05 - Ppt * 0.02) / 0.01;
     Ppo = (int) ppo;

     System.out.println ("50 yuan: " + Fty);
     System.out.println ("20 yuan: " + Twy);
     System.out.println ("10 yuan: " + Ten);
     System.out.println ("5 yuan: " + Fiv);
     System.out.println ("1 yuan; " + One);
     System.out.println ("0.5 yuan: " + Ptf);
     System.out.println ("0.1 yuan: " + Pto);
     System.out.println ("0.05 yuan: " + Ppf);
     System.out.println ("0.02 yuan: " + Ppt);
     System.out.println ("0.01 yuan: " + Ppo);
  }
}
